
testOptimizations([
	
	['pointless: a();',
		'a();'],
	
	['useless: for (i = 0; i < 100; i++) { i += a(); if (i) break; }',
		'for (i = 0; i < 100; i++) { i += a(); if (i) break; }'],
	
	['useless: for (i = 0; i < 100; i++) { i += a(); if (i) break useless; }',
		'for (i = 0; i < 100; i++) { i += a(); if (i) break; }'],
	
	['useful: for (i = 0; i < 100; i++) for (j = 0; j < a(); j++) if (b() && j) break useful;',
		'useful: for (i = 0; i < 100; i++) for (j = 0; j < a(); j++) if (b() && j) break useful;'],
	
	['loop: do switch (a()) { case b: break loop; case c: d(); } while (1);',
		'loop: do switch (a()) { case b: break loop; case c: d(); } while (1);'],
	
	['sw: switch (a()) { case b: break sw; case c: d(); };',
		'switch (a()) { case b: break; case c: d(); }']
	
]);
